package com.itheima.framework.beans.factory;

/**
 * @author zzw
 * @date 2025/11/15
 * @description 定义IOC容器的统一规范，获取bean对象
 */
public interface BeanFactory {

    //根据bean对象的名称获取bean对象
    Object getBean(String name) throws Exception;

    //根据bean对象的名称获取bean对象，并进行类型转换
    <T> T getBean(String name, Class<? extends T> clazz) throws Exception;
}
